package com.qf.base.domain;

import com.qf.common.annotation.Excel;
import com.qf.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * --- ONE PIECE ---
 *
 * @author yangjiangcheng
 * @date 2025/9/4
 * @desc
 */
@Data
public class BaseGoods extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long goodsId;

    /** 货物名称 */
    @Excel(name = "货物名称")
    private String goodsName;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 长(m) */
    @Excel(name = "长(m)")
    private BigDecimal length;

    /** 宽(m) */
    @Excel(name = "宽(m)")
    private BigDecimal width;

    /** 高(m) */
    @Excel(name = "高(m)")
    private BigDecimal height;

    /** 体积(m³) */
    @Excel(name = "体积(m³)")
    private BigDecimal volume;

    /** 重量(kg) */
    @Excel(name = "重量(kg)")
    private BigDecimal weight;

    /** 价值(元) */
    @Excel(name = "价值(元)")
    private BigDecimal value;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("goodsId", getGoodsId())
                .append("goodsName", getGoodsName())
                .append("unit", getUnit())
                .append("length", getLength())
                .append("width", getWidth())
                .append("height", getHeight())
                .append("volume", getVolume())
                .append("weight", getWeight())
                .append("value", getValue())
                .append("status", getStatus())
                .toString();
    }
}
